package com.sh.线程的创建方式;

/**
 * @Auther: sh
 * @Version 1.0
 * @Description:
 */
public class 实现Runnable implements Runnable{
    @Override
    public void run() {
        System.out.println("实现Runnable接口的线程执行了");
    }

    public static void main(String[] args) {
        new Thread(new 实现Runnable()).start();
        System.out.println("主线程执行了");
    }
}

